﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class wb_elmt_wit_clk : BasiCommand
    {
        [JsonProperty("by_type")]
        public string ByType { get; set; }

        [JsonProperty("by_content")]
        public string ByContent { get; set; }

        [JsonProperty("overtime")]
        public int Overtime { get; set; }

        public wb_elmt_wit_clk()
        {
            FunctionType = "wb_elmt_wit_clk";
            OtherName = "等待元素点击";
            SuccessJump = -1;
            FailureJump = -1;
            ByType = "";
            ByContent = "";
            Overtime = 15000;
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
